package com.fpd.model.ro;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fpd.enums.CustSourceEnum;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @desc 案件跟进信息入参模型
 * @author wujiangbo
 * @date 2019年11月27日 下午2:05:08
 */
@Data
@ApiModel(description = "案件跟进信息入参模型")
public class CaseFollowInfoRO extends PageRO {

	private static final long serialVersionUID = 3961826225627448724L;

	@ApiModelProperty(value = "主键ID(与业务无关)", example = "新增不填")
	private String id;

	@ApiModelProperty(hidden = true)
	private Date createTime;

	@ApiModelProperty(hidden = true)
	private Date updateTime;

	@ApiModelProperty(value = "跟进时间", example = "")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private String followTime;

	@ApiModelProperty(hidden = true)
	private String batchNumber;

	@ApiModelProperty(value = "客户号", example = "")
	private String custNo;

	@ApiModelProperty(value = "客户分类（1：全部还款客户；2：部分还款客户；3：待跟进客户；4：拒绝回款客户；）", example = "")
	private String custClassify;

	@ApiModelProperty(hidden = true)
	private BigDecimal yuqiAmount;

	@ApiModelProperty(hidden = true)
	private BigDecimal leftMoney;

	@ApiModelProperty(value = "是否当日转化（0：否；1：是）", example = "")
	private int isTodayConversion;

	@ApiModelProperty(hidden = true)
	private BigDecimal repaymentAmount;

	@ApiModelProperty(hidden = true)
	private BigDecimal reductionAmount;

	@ApiModelProperty(hidden = true)
	private String repaymentStyle;

	@ApiModelProperty(hidden = true)
	private Date repaymentTime;

	@ApiModelProperty(value = "代偿还款人", example = "")
	private String reimbursementPayer;

	@ApiModelProperty(value = "是否结清（0：否；1：是）", example = "")
	private int isSettleAccounts;

	@ApiModelProperty(value = "跟进记录", example = "")
	private String followRecord;

	@ApiModelProperty(value = "跟进方式", example = "")
	private String followWay;

	@ApiModelProperty(value = "跟进客服ID")
	private String followUserId;

	@ApiModelProperty(value = "跟进客服姓名")
	private String followUserName;

	@ApiModelProperty(value = "跟进客服小组ID")
	private String followUserGroupId;

	@ApiModelProperty(value = "跟进状态（0：即时跟进；1：逾期跟进）", example = "0")
	private int followState;

	@ApiModelProperty(value = "下次跟进时间", example = "")
	private String nextFollowTime;

	@ApiModelProperty(value = "跟进结果", example = "")
	private String followResult;

	@ApiModelProperty(hidden = true)
	private String attachmentNo;

	@ApiModelProperty(value = "下次跟进要点", example = "")
	private String nextFollowPort;

	@ApiModelProperty(value = "联系人姓名", example = "")
	private String linkUserName;

	@ApiModelProperty(value = "联系人关系", example = "")
	private String linkUserRelationship;

	@ApiModelProperty(value = "联系人手机号", example = "")
	private String linkUserPhone;

	@ApiModelProperty(value = "承诺还款次数", example = "")
	private Integer promiseCount;

	@ApiModelProperty(value = "添加跟进时是否改变客户状态（0：不改变；1：改变）", example = "")
	private String followTypeState;

	@ApiModelProperty(value = "最后一次提醒时间", example = "")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private String remindTime;

	@ApiModelProperty(value = "跟进提醒状态（0：过期的提醒 1：有效的提醒）", example = "")
	private int remindState;

	@ApiModelProperty(value = "跟进提醒次数", example = "")
	private int remindCount;

	@ApiModelProperty(value = "提醒提交时间", example = "")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private String remindSubmitTime;
	
	private MultipartFile[] files;
	
	private String custSource;//客户来源
	
	private String custName;//客户名称
	
	private String custSourceName;//客户来源中文
	
	/**
	 * 催记开始时间
	 */
	private String beginTimeStart;

	/**
	 * 催记时间结束
	 */
	private String beginTimeEnd;
	
	/**
	 * 委案开始时间
	 */
	private String beginWaStart;

	/**
	 * 委案时间结束
	 */
	private String beginWaEnd;
	
	
	private String showPage;//是否分页
	
	private String thirdParty;

	public String getCustSourceName() {
		return CustSourceEnum.getNameByValue(this.custSource);
	}

}